//引入初始化样式
import './styles/common.scss'
// 全局指令注册
import { lazyPlugin } from '@/directive/index'
import { createApp } from 'vue'
//引用全局组件注册
import { componentPlugin } from '@/components'

import App from './App.vue'
import router from './router'

//pinia存储插件
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

const app = createApp(App)

app.use(pinia)
app.use(router)
app.use(lazyPlugin)
app.use(componentPlugin)
app.mount('#app')
